from django import forms
from django.forms import ModelForm
from rbac import models


class RoleModleForm(ModelForm):
    class Meta:
        model=models.Role
        fields='__all__'
        widgets={
            'title':forms.TextInput(attrs={'class':'form-control'}),
            'permissions':forms.SelectMultiple(attrs={'class':'form-control'})
        }